package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TAgent;
import com.bootdo.project.dao.TAgentMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TAgentService {

	@Autowired
    private TAgentMapper tAgentMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tAgentMapper.deleteByPrimaryKey(id);
    }

    public int insert(TAgent record){
        return tAgentMapper.insert(record);
    }

    public int insertSelective(TAgent record){
        return tAgentMapper.insertSelective(record);
    }

    public TAgent selectByPrimaryKey(Integer id){
        return tAgentMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TAgent record){
        return tAgentMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TAgent record){
        return tAgentMapper.updateByPrimaryKey(record);
    }

    public List<TAgent> selectByCondition(TAgent record){
        return tAgentMapper.selectByCondition(record);
    }

    public List<TAgent> selectAll(){
        return tAgentMapper.selectAll();
    }

    public List<TAgent> selectByPage(Page<TAgent> page){
        return tAgentMapper.selectByPage(page);
    }

    public Integer count(TAgent record){
        return tAgentMapper.count(record);
    }

    public int deleteByCondition(TAgent record){
        return tAgentMapper.deleteByCondition(record);
    }

}
